package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;

import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 药品列表对象 med_medicine
 *
 * @author yangxp
 * @date 2020-07-29
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("med_medicine")
public class Medicine implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * $column.columnComment
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * $column.columnComment
	 */
	@TableId(value = "med_id", type = IdType.ASSIGN_UUID)
	private String medId;

	/**
	 * 货架号
	 */
	@Excel(name = "货架号")
	private String sheId;

	/**
	 * 药品名字
	 */
	@Excel(name = "药品名字")
	private String medName;

	/**
	 * 进价
	 */
	@Excel(name = "进价")
	private BigDecimal costPrice;

	/**
	 * 售价
	 */
	@Excel(name = "售价")
	private BigDecimal marketPrice;

	/**
	 * 库存/克
	 */
	@Excel(name = "库存/克")
	private BigDecimal stock;

	/**
	 * 备注信息
	 */
	@Excel(name = "备注信息")
	@TableField(value = "`desc`")
	private String desc;

	/**
	 * 创建时间
	 */
	@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date gmtCreate;

	/**
	 * 更新时间
	 */
	@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date gmtModified;

	@TableLogic
	private Integer isDeleted;

	@TableField(exist = false)
	private String sheCode;

}
